package request

// 地址添加
type AddressCreate struct {
	UserId        uint   `json:"user_id" form:"user_id" binding:"required"`
	RecipientName string `json:"recipient_name" form:"recipient_name" binding:"required"`
	Mobile        string `json:"mobile" form:"mobile" binding:"required"`
	Province      string `json:"province" form:"province" binding:"required"`
	City          string `json:"city" form:"city" binding:"required"`
	District      string `json:"district" form:"district" binding:"required"`
	DetailAddress string `json:"detailAddress" form:"detailAddress" binding:"required"`
	ReceiverZip   string `json:"receiverZip" form:"receiverZip" binding:"required"`
}

// 地址列表
type AddressList struct {
	UserId uint `json:"user_id" form:"user_id" binding:"required"`
}

// 地址删除
type AddressDel struct {
	Id uint `json:"id" form:"id" binding:"required"`
}

// 实时物流查询
type RealTimeExpress struct {
	Company  string `json:"company" form:"company" binding:"required"`
	Tracking string `json:"tracking" form:"tracking" binding:"required"`
}

// 创建售后
type CreateSales struct {
	UserId       int32   `json:"user_id" form:"user_id" binding:"required"`
	OrderId      int32   `json:"order_id" form:"order_id" binding:"required"`
	Cause        string  `json:"cause" form:"cause" binding:"required"`
	SalesImg     string  `json:"sales_img" form:"sales_img" binding:"required"`
	Status       int32   `json:"status" form:"status" binding:"required"`
	SalesPrice   float64 `json:"sales_price" form:"sales_price" binding:"required"`
	SalesSatatus int32   `json:"sales_status" form:"sales_status" binding:"required"`
}
